package com.example.chatweb.service;

import co.elastic.clients.elasticsearch.ml.EstimateModelMemoryRequest;
import com.example.chatweb.entity.Article;
import com.example.chatweb.request.ReportRequest;
import com.example.chatweb.request.OpinionRequest;
import com.example.chatweb.request.SavedReport;

import java.io.IOException;
import java.util.List;

public interface ReportService {
    public List<Article> findArticleByKeyword(String keyWord, int pageNo, int pageSize) throws IOException;

    public String generateReport(ReportRequest reportRequest);

    public String extractOpinion(OpinionRequest opinionRequest);
    public String uploadToDB(SavedReport savedReport);
    public String getReportContentByReportId(String reportId);
    public String getEveryReportIDByUserid(String userid);

}
